import request from '../utils/request';

// 获取左侧界面数据请求
// export const getLeftPageData = async () => {
//   return request('/api/leftPageData').then(response => {
//     return response.data;
//   });
// };

// // 获取中间界面数据请求
// export const getCenterPageData = async () => {
//   return request('/api/centerPageData').then(response => {
//     return response.data;
//   });
// };

// // 获取右侧界面数据请求
// export const getRightPageData = async () => {
//   return request('/api/rightPageData').then(response => {
//     return response.data;
//   });
// };

export const getBigScreenData = async (data) => {
  return request('/aireport/v1/bigScreenData/stat',data).then(response => {
    return response.data;
  });
};


export const getStoreMap = async (data) => {
  return request('/aireport/v1/bigScreenData/storeMap',data).then(response => {
    return response.data;
  });
};

export const getBigScreenList = async (data) => {
  return request('/aireport/v1/bigScreenData/storeList',data).then(response => {
    return response.data;
  });
};

export const salesGoodsTop = async (data) => {
  return request('/aireport/v1/bigScreenData/salesGoodsTop',data).then(response => {
    return response.data;
  });
};

export const salesStoreTop = async (data) => {
  return request('/aireport/v1/bigScreenData/salesStoreTop',data).then(response => {
    return response.data;
  });
};

export const realTimeSales = async (data) => {
  return request('/aireport/v1/bigScreenData/realTimeSales',data).then(response => {
    return response.data;
  });
};

export const chart2WeeksSales = async (data) => {
  return request('/aireport/v1/bigScreenData/chart2WeeksSales',data).then(response => {
    return response.data;
  });
};

export const getBoxStockInfo = async (data) => {
  return request('/aireport/v1/bigScreenData/getBoxStockInfo',data).then(response => {
    return response.data;
  });
};

export const bigScreenData = async (data) => {
  return request('/aireport/v1/bigScreenData/warn',data).then(response => {
    return response.data;
  });
};
